﻿using System;

namespace _4
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = new int[5] { 4, 2, 1, 3, 5 };
            Console.WriteLine($"{Max(a)}");
        }

        private static int Max(params int[] a)
        {
            int max = a[0];
            for(int i=1;i<a.Length;i++)
            {
                if (max < a[i])
                {
                    max = a[i];
                }
            }
            return max;
        }
    }
}
